<template>
  <div>
    <div class="element-table">
    </div>
  </div>
</template>

<script>
import '@/styles/style.scss'
import '@/styles/upload.scss'
import appUtils, { formatDate, isBlank, isFlag, moneyFormat, ossPut } from '@/utils/util'

export default {
  name: 'homePage',
  data() {
    return {
      pageNo: 1,
      pageTotal: 0,
      userId: this.$store.state.user.userId,
      seriesId: this.$route.query.seriesId,
      myImage: appUtils.myImage,
      liveImg: appUtils.liveImg,
      imgName: '',
      imgModal: false,
      setMealName: '',
      selection: '',
      visible: false,
      dataList: [],
      dataListCopy: [],
      routerPage: []
    }
  },
  mounted() {
    console.log("我进来了")
    this.$router.push({
      name: 'displayBusinessList'
    })
    var access = this.$store.state.user.roles
    console.log(access)

  },
  methods: {
    formatDate,
    ossPut,
    isBlank,
    isFlag,
    moneyFormat,
    clickQuery() {
      this.change(1)
    },
    changeSel() {
      this.change(1)
    },
    change(page) {
      this.pageNo = page
    },
    handleView(name) {
      this.imgName = name
      this.imgModal = true
    },
    handleDelete(param) {
      setMealDelete(param.setMealId).then(res => {
        if (isFlag(res.code, 1)) {
          this.$message.success(res.message)
          this.change(this.pageNo)
        } else {
          this.$message.error('失败')
        }
      })
    },
    handleUpload() {
      this.router.push({
        name: 'purchaseCurtainsProductSetMealForm'
      })
    },
    handleUpdate(param) {
      this.router.push({
        name: 'purchaseCurtainsProductSetMealForm'
      })
    }
  }
}
</script>
<style scoped>
/deep/ .el-button + .el-button {
  margin-left: 0px;
}
</style>
